<ion-view view-title="搜索任务" hide-nav-bar="true">
	<style>
		.t-result{
			height:25px;
		}
		.pList-scroll{
			position: absolute;
			top: 25px!important;
			bottom: 0;
			left: 0;
			right: 0;
		}
	</style>
	<ion-header-bar class="bar-dark prl10">
		<div class="buttons buttons-left header-item" style=" margin-right:5px;">
			<a ui-sref="app.tasks" class="button button-clear button-icon button-light icon ion-ios-arrow-back" ></a>
		</div>
		<h1 class="title">搜索任务</h1>
	</ion-header-bar>
	<ion-content class="page has-header" scroll="false">
		<div class="t-result">
			<div class="push-task padding">
				<a ng-href="#/app/push-task" class="button button-outline button-assertive button-block" style="margin-bottom: 0;">发布任务</a>
			</div>
			<!--<div class="bar bar-stable" style="height:44px; display: block;">
				<div class="row row-tabs">
					<div class="col col-center tab-item">
						<div class="col-item dropdown-toggle" ng-click="sortBy('-pushtime')">推荐排序</div>
					</div>
					<div class="col col-center tab-item">
						<a class="col-item dropdown-toggle" ng-click="sortBy('categra')">分类排序 </a>
					
					</div>
					<div class="col col-center tab-item dropdown" dropdown on-toggle="toggled(open,4)">
						<a class="col-item dropdown-toggle" dropdown-toggle>筛选 <i class="f20  ion-ios-arrow-down"></i></a>
						<div class="dropdown-menu arrow-box arrow-box4">
							<ion-radio ng-value="item.value" name="filteredMarry" ng-model="filtered.marry" ng-change="filterChange(item,filters.marry)" ng-repeat="item in filters.marry | orderBy:'order':true">
								{{item.option}}
							</ion-radio>
						</div>
					</div>
				</div>
			</div>-->
		</div>
		<ion-scroll direction="y" class="taskcase-list list mt45 pList-scroll">
			<ion-refresher pulling-icon="" pulling-text="下拉刷新" on-refresh="doRefresh()"></ion-refresher>
			<a ng-repeat="task in tasks" ui-sref="app.task-detail({id: task.id})"
			   class="item item-thumbnail-left  mb5 line-se-t item-borderless">
				<img image-lazy-src="{{task.picture_url}}" alt="" class=" ">
				<h2><div class="task-name">{{task.property}} <i class="radius20 bg-energized f11">{{task.category}}</i> </div></h2>
				<p class="color-9 mt8">
					{{task.address}} / {{task.area||'未知'}}平方
				</p>
				<div class="row">
					<div class="col f11 color-a mt10">四室两厅</div>
					<div class="col f11 color-a text-right mt10">{{task.dateline*1000|date : 'yyyy-MM-dd hh:mm'}}</div>
				</div>
			</a>
			<ion-infinite-scroll ng-if="moreDataCanBeLoaded()" on-infinite="loadMore()" distance="3%"></ion-infinite-scroll>
		</ion-scroll>
	</ion-content>
</ion-view>
